package uy.com.tsi2G7.superbet.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="CITIES")
@Entity
public class City implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id 
	@Column(name="ID")
	private int id;
	@Column(name="Name",length=255)
	private String name;
	@Column(name="CountryCode",length=3)
    private String countryCode;
	@Column(name="District",length=20)
    private String district;
	@Column(name="Population")
	private int population;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public int getPopulation() {
		return population;
	}
	public void setPopulation(int population) {
		this.population = population;
	}
    
	public String toString(){
		return getName();
	}

}
